/*this page is the default page that users hit by navigating to the
website It forwards the request to the login page and if the user had
already loggedin and is in the session then forward to the appropriate
user interface, weather its user or admin interface */

<?php
include_once 'model/user.php';
session_start();
if(isset($_SESSION['user'])){
	if($_SESSION['user']->getUserName() == 'admin'){
		header('location: ../model/admin_gen.php');
	}else{
		header('location: ../model/team.php');
	}
}else{
	header('Location: model/login.php');
}
?>
